package com.dundun.pattern.proxy;

public class ProxyMain {
    public static void main(String[] args) {
        Printable p = new PrinterProxy("Alice");
        System.out.println("printer name is " + p.getPrinterName());
        p.setPrinterName("Bob");
        System.out.println("printer name is " + p.getPrinterName());
        p.print("Hello world.");
    }
}
